home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / cd_check.zip / README < prev   
Text File  |  1991-07-06  |  1KB  |  35 lines

  1.  
  2. CD-Check is a utility to trap a carrier detect on COM1 thru
  3. COM4.  There is no warrante expressed or implied.  Use at 
  4. your own risk.  CD-Check is the property of Scott McKnight.
  5. It is free for use in a non-commercial environment.  For a
  6. commercial liscense to use CD-Check, send $10:00 to
  7.  
  8. Scott McKnight
  9. 377 Bevill Ave
  10. Blytheville, AR, 72315
  11. FIDO: 1:389/2001
  12. PH: (501) 532-6212 or 5641 (1200-14400, HST/V32)
  13.  
  14.  
  15. Instruction for using CD-Check is simple. Type the command:
  16.  
  17. CD-Check [Port#]
  18. example: CD-Check 1
  19.  
  20.   This example will check COM1 for a carrier detect.  If it finds one, it
  21. will exit with errorlevel 0.  If no carrier is detected, it will exit
  22. with errorlevel 1.
  23.  
  24. A simple batch file routine for trapping the errorlevel would go
  25. something like this:
  26.  
  27. :CD-Check
  28.    CD-Check 1
  29.      if Errorlevel 1 Goto No-carrier
  30.      if Errorlevel 0 Goto Carrier-on
  31.    :No-carrier
  32.      Goto routine-1, no carrier is detected
  33.    :Carrier-on
  34.      Goto routine-0, a carrier is detected
  35.